package com.hakim.wfb.admin.enums;

/**
 *
 */
public enum ShowTypeEnum {

    SPACE_TYPE(1, "空格填充符号"),
    OBLIQUE_LINE_TYPE(2, "斜线填充符号"),;

    /**
     * 值
     */
    private int code;
    /**
     * 注释
     */
    private String message;

    private ShowTypeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public static ShowTypeEnum getByCode(int code) {
        for (ShowTypeEnum type : values()) {
            if (type.getCode() == (code)) {
                return type;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
